package j06qita;

public class J1 {
    static int count = 1000;
    public static void main(String[] args) {
        Runnable run1 = ()->{
            int a = 7;//1
            a++;//2 1
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println("a = " + a); //1 = 9?
        };


        Thread t1 = new Thread(run1);
        Thread t2 = new Thread(run1);

        t1.start();
        t2.start();
    }
}
